package com.ruoyi.pcj.domain;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.pcj.constant.TbConstant;
import lombok.Data;

import java.util.Date;

/**
 * 贴吧-文章对象 pcj_tb_article
 *
 * @author dk
 * @date 2024-03-12
 */
@Data
@TableName(TbConstant.pcjTbCollect)
public class PcjTbCollect extends BaseEntity {
    private static final long serialVersionUID = 1L;


    /**
     * 删除标志（0代表存在 1代表删除）
     */
    @TableLogic
    @TableField("del_flag")
    private Integer delFlag;

    /**
     * 文章id
     */
    @TableField("article_id")
    private String articleId;

    /**
     * 点赞人id
     */
    @TableField("user_id")
    private Long userId;

    /**
     * 点赞时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @TableField("collect_time")
    private Date collectTime;
}
